<template>
	<view>
		<newDetail ref="detailPage"> </newDetail>

		
	</view>
</template>

<script>
	import newDetail from "../pages/news/detail.vue"
	export default {	
		components:{
			newDetail
		},
		created(e){
		//监听自定义事件，该事件由详情页列表的点击触发
		uni.$on('updateDetail', (e) => { 
		//执行/pages/news/ detail.nvue页面的Load方法
		console.log("bbb")
		this.$refs.detailPage.load(e.detail);
		})
		}
	}

	
</script>


<style>
	page{
		width: 600rpx;
		z-index: 999;
	}
</style>
